Use the slice allocator for some other small auxiliary structures as well.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Dec 2005 00:49:24 +0000 (00:49 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 27 Dec 2005 00:49:24 +0000 (00:49 +0000)
2005-12-26  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktextbtree.c: Use the slice allocator for some other small
auxiliary structures as well.

ChangeLog
ChangeLog.pre-2-10
gtk/gtktextbtree.c

index f53799391f5d05ee5a72a0c12fedc0d1275cdf47..45769f85a43b549a664c0e43e44a7242a01051ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktextbtree.c: Use the slice allocator for some other small
+       auxiliary structures as well.
+
        * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
        docs.  (#324996)
 
index f53799391f5d05ee5a72a0c12fedc0d1275cdf47..45769f85a43b549a664c0e43e44a7242a01051ca 100644 (file)
@@ -1,5 +1,8 @@
 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktextbtree.c: Use the slice allocator for some other small
+       auxiliary structures as well.
+
        * gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
        docs.  (#324996)
 
index 64a4e34b2d2e3ec6ca40b6ec44062421d782560b..d69357a69ec3fb655e10f940a0da819ff666d11f 100644 (file)
@@ -1660,7 +1660,7 @@ static IterStack*
 iter_stack_new (void)
 {
   IterStack *stack;
-  stack = g_new (IterStack, 1);
+  stack = g_slice_new (IterStack);
   stack->iters = NULL;
   stack->count = 0;
   stack->alloced = 0;
@@ -1697,7 +1697,7 @@ static void
 iter_stack_free (IterStack *stack)
 {
   g_free (stack->iters);
-  g_free (stack);
+  g_slice_free (IterStack, stack);
 }
 
 static void